// import Cookies from 'js-cookie'

import tool from '@/utils/tool';
console.log(Cookies)
const TokenKey = 'JSESSIONID'

// export function getToken() {
//   return Cookies.get(TokenKey)
// }
export function getToken(name) {
  return Cookies.get(name)
}
export function gettingToken(name) {
  return Cookies.get(name)
}

// export function setToken(token) {
//   // return Cookies.set(TokenKey, token)
//   return Cookies.set(name, token)
// }

export function setToken(name , token) {
  return Cookies.set(name, token)
}
export function settingToken(name , token) {
  return Cookies.set(name, token)
}
// export function removeToken() {
//   return Cookies.remove(TokenKey)
// }

export function removeToken(name) {
  Cookies.remove(name)
}
